<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Intranet de pharmarket</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <link href="/pharmarket/intranet/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="/pharmarket/intranet/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="/pharmarket/intranet/css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Morris chart -->
        <link href="/pharmarket/intranet/css/morris/morris.css" rel="stylesheet" type="text/css" />
        <!-- jvectormap -->
        <link href="/pharmarket/intranet/css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- Date Picker -->
        <link href="/pharmarket/intranet/css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
        <!-- Daterange picker -->
        <link href="/pharmarket/intranet/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
        <!-- bootstrap wysihtml5 - text editor -->
        <link href="/pharmarket/intranet/css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="/pharmarket/intranet/css/AdminLTE.css" rel="stylesheet" type="text/css" />
        


        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <span class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                Pharmarket
            </span>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                      



                            

                       
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><?=$username?> <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header bg-light-blue">
                                    <p>
                                        <?=$username?>
                                        <small>Inscrit depuis le :</small>
                                        <?=$datecreated?>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <!--<li class="user-body">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Followers</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Sales</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">Friends</a>
                                    </div>
                                </li>-->
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <!--<div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                    </div>-->
                                    <div class="pull-right">
                                        <li><?php echo $this->Html->link("<i class='fa fa-times-circle'></i> Déconnexion", array('controller' => 'users', 'action' => 'logout'), array('escape' => FALSE)); ?></li>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <!--<div class="pull-left image">
                            <img src="img/avatar3.png" class="img-circle" alt="User Image" />
                        </div>-->
                        <div class="pull-left info">
                            <p>Bonjour <?=$username?></p>

                            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                        </div>
                    </div>
                    <!-- search form 
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="Search..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>-->
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                        <li class="active">
                            <?php echo $this->Html->link("<i class='fa fa-dashboard'></i> <span>Dashboard</span>", array('controller' => 'homes', 'action' => 'index'), array('escape' => FALSE)); ?>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-paper-plane"></i>
                                <span>Commandes</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Liste des commandes", array('controller' => 'commandes', 'action' => 'index'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Commandes ouvertes", array('controller' => 'commandes', 'action' => 'ouvertes'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Commandes en cours", array('controller' => 'commandes', 'action' => 'encours'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Commandes terminées", array('controller' => 'commandes', 'action' => 'termines'), array('escape' => FALSE)); ?></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-database"></i>
                                <span>Produits</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Visualiser le stock", array('controller' => 'stocks', 'action' => 'index'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Visualiser les produits", array('controller' => 'products', 'action' => 'index'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Ajout d'un produit", array('controller' => 'products', 'action' => 'add'), array('escape' => FALSE)); ?></li>
                                
                            </ul>
                        </li>
                        <li class="active">
                            <?php echo $this->Html->link("<i class='fa fa-bar-chart'></i> <span>Graphiques</span>", array('controller' => 'charts', 'action' => 'index'), array('escape' => FALSE)); ?>
                        </li>
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-calculator "></i>
                                <span>Export</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Liste des utilisateurs", array('controller' => 'excels', 'action' => 'utilisateurs'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Liste des produits", array('controller' => 'excels', 'action' => 'produits'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Liste des commandes", array('controller' => 'excels', 'action' => 'commandes'), array('escape' => FALSE)); ?></li>
                                <li><?php echo $this->Html->link("<i class='fa fa-angle-double-right'></i> Statistiques", array('controller' => 'excels', 'action' => 'statistiques'), array('escape' => FALSE)); ?></li>
                            </ul>
                        </li>
                        
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Main content -->
                <section class="content">
                    <?php echo $this->fetch('content'); ?>
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

        <!-- add new calendar event modal -->


        <script src="/pharmarket/intranet/js/jquery-2.1.1.min.js"></script>
        
        <script src="/pharmarket/intranet/js/bootstrap.min.js" type="text/javascript"></script>
        <!-- Data Tables -->
        <script src="/pharmarket/intranet/js/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
        
        <script src="/pharmarket/intranet/js/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="/pharmarket/intranet/js/AdminLTE/app.js" type="text/javascript"></script>

        <!-- Chart.js -->
        <script src="/pharmarket/intranet/js/Chartjs/Chart.js" type="text/javascript"></script>
        <?php echo $scripts_for_layout; ?>
        
    </body>
</html>